function e(e) {
    return function() {
        var r = e.apply(this, arguments);
        return new Promise(function(e, t) {
            function n(i, a) {
                try {
                    var u = r[i](a), o = u.value;
                } catch (e) {
                    return void t(e);
                }
                if (!u.done) return Promise.resolve(o).then(function(e) {
                    n("next", e);
                }, function(e) {
                    n("throw", e);
                });
                e(o);
            }
            return n("next");
        });
    };
}

function r(e) {
    return i({
        uri: e,
        headers: {
            "User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1",
            Accept: "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
            Cookie: "did=web_b93a280744384c2aaa6d0967d8730c5e; didv=1598775985000; sid=2c06addd759b077b402d0263"
        }
    });
}

var t = function() {
    var t = e(regeneratorRuntime.mark(function e(t) {
        var n, i;
        return regeneratorRuntime.wrap(function(e) {
            for (;;) switch (e.prev = e.next) {
              case 0:
                return e.next = 2, r(t);

              case 2:
                if (n = e.sent, !(i = new RegExp(/window\.pageData=(.*?)<\/script>/)).test(n)) {
                    e.next = 9;
                    break;
                }
                return jsonData = JSON.parse(RegExp.$1), e.abrupt("return", {
                    playAddress: jsonData.video.srcNoMark,
                    code: 0,
                    tested: !0
                });

              case 9:
                return e.abrupt("return", {
                    code: -1
                });

              case 10:
              case "end":
                return e.stop();
            }
        }, e, this);
    }));
    return function(e) {
        return t.apply(this, arguments);
    };
}(), n = require("wx-server-sdk"), i = require("request-promise");

require("request");

n.init("qq30-7gqj7mcg4bd63283"), exports.main = function() {
    var r = e(regeneratorRuntime.mark(function e(r, n) {
        var i;
        return regeneratorRuntime.wrap(function(e) {
            for (;;) switch (e.prev = e.next) {
              case 0:
                return e.next = 2, t(r.url);

              case 2:
                return i = e.sent, e.abrupt("return", i);

              case 4:
              case "end":
                return e.stop();
            }
        }, e, void 0);
    }));
    return function(e, t) {
        return r.apply(this, arguments);
    };
}();